// const path = require("path");
module.exports = {
  outputDir: "./dist",
  devServer: {
    open: true,
    proxy: {
      "^/api": {
        target: "http://152.136.185.210:5000/",
        pathRewrite: {
          "^/api": ""
        },
        changeOrigin: true
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        components: "@/components"
      }
    }
  }
  /* configureWebpack: (config) => {
    config.resolve.alias = {
      "@": path.resolve(__dirname, "./src"),
      components: "@/components"
    };
  } */
  /* chainWebpack: (config) => {
    config.resolve.alias
      .set("@", path.resolve(__dirname, "./src"))
      .set("components", "@/components");
  } */
};
